package cn.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;

/**
 * <p>
 * 账目表

 * </p>
 *
 * @author stylefeng
 * @since 2021-04-11
 */
@TableName("items")
public class Items extends Model<Items> {

    private static final long serialVersionUID = 1L;

    /**
     * 账目id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 账户id
     */
    private Integer accountid;
    /**
     * 支出时间
     */
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date paytime;
    /**
     * 支付金额
     */
    private BigDecimal pay;
    /**
     * 支付地点
     */
    private String payplace;
    /**
     * 支出类型
     */
    private String paykind;
    /**
     * 创建时间
     */
    private Date createtime;
    /**
     * 更新时间
     */
    private Date updatetime;
    /**
     * 更新人id
     */
    private Integer updateid;
    /**
     * 备注
     */
    private String remark;
    /**
     * 空闲字段1
     */
    private String spare1;
    /**
     * 空闲字段2
     */
    private String spare2;
    /**
     * 空闲字段3
     */
    private String spare3;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getAccountid() {
        return accountid;
    }

    public void setAccountid(Integer accountid) {
        this.accountid = accountid;
    }

    public Date getPaytime() {
        return paytime;
    }

    public void setPaytime(Date paytime) {
        this.paytime = paytime;
    }

    public BigDecimal getPay() {
        return pay;
    }

    public void setPay(BigDecimal pay) {
        this.pay = pay;
    }

    public String getPayplace() {
        return payplace;
    }

    public void setPayplace(String payplace) {
        this.payplace = payplace;
    }

    public String getPaykind() {
        return paykind;
    }

    public void setPaykind(String paykind) {
        this.paykind = paykind;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Integer getUpdateid() {
        return updateid;
    }

    public void setUpdateid(Integer updateid) {
        this.updateid = updateid;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getSpare1() {
        return spare1;
    }

    public void setSpare1(String spare1) {
        this.spare1 = spare1;
    }

    public String getSpare2() {
        return spare2;
    }

    public void setSpare2(String spare2) {
        this.spare2 = spare2;
    }

    public String getSpare3() {
        return spare3;
    }

    public void setSpare3(String spare3) {
        this.spare3 = spare3;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Items{" +
        ", id=" + id +
        ", accountid=" + accountid +
        ", paytime=" + paytime +
        ", pay=" + pay +
        ", payplace=" + payplace +
        ", paykind=" + paykind +
        ", createtime=" + createtime +
        ", updatetime=" + updatetime +
        ", updateid=" + updateid +
        ", remark=" + remark +
        ", spare1=" + spare1 +
        ", spare2=" + spare2 +
        ", spare3=" + spare3 +
        "}";
    }
}
